package com.example.springbootdemo.accessStatic;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author forsake
 * @Description 将http://127.0.0.1:8081/i/index解析为http://127.0.0.1:8081/s/index.html
 * 静态资源的全局路径为/s,所以使用http://127.0.0.1:8081/s/1.jpeg访问图片
 * @Date 0:55 2022/11/27
 **/
@Controller
@RequestMapping("i")
public class StaticCintroller {
    @RequestMapping("index")
    public String index() {
        System.out.println("还花花hi花花hi");
        return "index";
    }
}
